from flask import Blueprint,request,jsonify

test_bp = Blueprint('test',__name__)

@test_bp.route('/sum',methods=['POST'])
def sum():
    data = request.get_json()
    print(data)
    # 返回一个有效的 JSON 响应
    return jsonify({"message": "Received data successfully"})